package com.xflib.framework.util;

import java.io.File;

public class FileUtil {

    public static boolean createMissingParentDirectories(File file) {
        File parent = file.getParentFile();
        if (parent == null) {
            return true;
        } else {
            parent.mkdirs();
            return parent.exists();
        }
    }
    public static boolean createMissingDirectories(File file) {
        if (file == null) {
            return true;
        } else {
            file.mkdirs();
            return file.exists();
        }
    }

}
